/**
 * Created by mahai on 2019/1/16.
 * 关于 接口
 */
/**
 * Created by mahai on 2018/12/24.
 */


const mongoose = require('mongoose');
const Schema = mongoose.Schema;

//创建 Schema
const AboutSchema = new Schema({
    userId:{
        type:String,
        required:true
    },
    contact:[           //联系方式  对象
        { type: Object, required:true }
    ],
    dec:{               //自我描述
        type:String,
        required:true
    },
    WellknownSaying:[   // 名言激励
        {type:Object, required:true}
    ],
    img:{       //照片
        type:String,
    },
    extra_params:{          //扩展字段
        type:Object,
        default:{
            exports:'extra_params是扩展字段'
        }
    },
    create_time:{  //日期
        type:Date,
        default:Date.now()
    },
    update_time:{  //日期
        type:Date,
        default:Date.now()
    },
});

module.exports = About = mongoose.model('about',AboutSchema);
